package com.cqhilink.api.common.utils.enums;

/**
 * 返回前端公共枚举
 *
 * @author 王镇
 * @create 2017-01-11 18:59
 */
public enum RespCodeEnum {
    RESP_CODE_ENUM_true(true,"成功"),
    RESP_CODE_ENUM_false(false,"失败"),;

    /**
     * 编码
     */
    private boolean code;

    /**
     * 描述
     */
    private String description;

    /**
     * 构造方法
     * @param code
     * @param description
     */
    RespCodeEnum(boolean code, String description){
        this.code = code;
        this.description = description;
    }

    public boolean code() {
        return code;
    }

    public String description() {
        return description;
    }
}
